import request from "@/utils/request";

// 查询转岗列表
export function listPost(data,pageNum,pageSize) {
  return request({
    url: "/module/employee/post/list?pageNum=" + pageNum + "&pageSize=" + pageSize,
    method: "post",
    data: data,
  });
}

// 查询转岗详细
export function getPost(postId) {
  return request({
    url: "/module/employee/post/" + postId,
    method: "get",
  });
}

// 新增转岗
export function addPost(data) {
  return request({
    url: "/module/employee/post",
    method: "post",
    data: data,
  });
}

// 修改转岗
export function updatePost(data) {
  return request({
    url: "/module/employee/post",
    method: "put",
    data: data,
  });
}

// 删除转岗
export function delPost(postIds) {
  return request({
    url: "/module/employee/post/" + postIds,
    method: "delete",
  });
}

// 批量提交
export function submitPost(postIds) {
  return request({
    url: "/module/employee/post/submit/" + postIds,
    method: "put",
  });
}

// 批量驳回
export function rejectPost(postIds) {
  return request({
    url: "/module/employee/post/reject/" + postIds,
    method: "put",
  });
}

// 批量审核
export function audittPost(postIds) {
  return request({
    url: "/module/employee/post/audit/" + postIds,
    method: "put",
  });
}
